<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>P5-工作地人口-居住地分布</title>
    <!-- 引入jquery文件 -->
    <script src="../js/jquery-3.1.1.js"></script>
    <!-- 引入 ECharts 文件 -->
    <script src="../js/echarts.js"></script>
</head>
<body>
<div id="map" style="width: 800px;height:600px;"></div>

<script>

    // JS
    var chart = echarts.init(document.getElementById('map'));

    // 获取乌鲁木齐区块数据
    $.getJSON('../data/wlmq_block.json', function (data) {
        echarts.registerMap('urumqi', data);
        var chart = echarts.init(document.getElementById('map'));
        chart.setOption({
            title: {
                text: 'P5-工作地人口-居住地分布'
            },
            tooltip: {
                trigger: 'item',
                formatter: '{b}<br/>{c} (p / km2)'
            },
            visualMap: {
                min:  1,
                max: 18000,
                text:['High','Low'],
                realtime: false,
                calculable: true,
                inRange: {
                    color: ['lightskyblue','yellow', 'orangered']
                }
            },
            series: [
                {
                    type: 'map',
                    mapType: 'urumqi', // 自定义扩展图表类型
                    itemStyle:{
                        normal:{label:{show:false}},
                        emphasis:{label:{show:true}}
                    },
                    data:[
                        {name: 'DBCQ1_7', value: 1},
                        {name: 'DBCQ1_9', value: 2},
                        {name: 'DBCQ2_12', value: 12},
                        {name: 'DBCQ2_13', value: 2},
                        {name: 'DBCQ2_14', value: 1},
                        {name: 'DBCQ2_15', value: 4},
                        {name: 'DBCQ2_16', value: 10},
                        {name: 'DBCQ2_29', value: 1},
                        {name: 'DBCQ2_5', value: 14},
                        {name: 'DBCQ2_6', value: 1},
                        {name: 'DBCQ2_8', value: 3},
                        {name: 'DBCQ2_90', value: 1},
                        {name: 'DBCQ2_93', value: 1},
                        {name: 'MDQ_102', value: 1},
                        {name: 'MDQ_103', value: 44},
                        {name: 'MDQ_104', value: 1},
                        {name: 'MDQ_106', value: 4},
                        {name: 'MDQ_108', value: 30},
                        {name: 'MDQ_109', value: 15},
                        {name: 'MDQ_110', value: 2},
                        {name: 'MDQ_111', value: 82},
                        {name: 'MDQ_113', value: 11},
                        {name: 'MDQ_114', value: 20},
                        {name: 'MDQ_116', value: 9},
                        {name: 'MDQ_118', value: 16},
                        {name: 'MDQ_119', value: 1},
                        {name: 'MDQ_12', value: 1},
                        {name: 'MDQ_16', value: 1},
                        {name: 'MDQ_22', value: 1},
                        {name: 'MDQ_23', value: 6},
                        {name: 'MDQ_25', value: 8},
                        {name: 'MDQ_26', value: 3},
                        {name: 'MDQ_29', value: 1},
                        {name: 'MDQ_30', value: 4},
                        {name: 'MDQ_32', value: 64},
                        {name: 'MDQ_33', value: 235},
                        {name: 'MDQ_34', value: 45},
                        {name: 'MDQ_35', value: 71},
                        {name: 'MDQ_36', value: 5},
                        {name: 'MDQ_37', value: 1},
                        {name: 'MDQ_38', value: 12},
                        {name: 'MDQ_40', value: 2},
                        {name: 'MDQ_42', value: 2},
                        {name: 'MDQ_45', value: 4},
                        {name: 'MDQ_46', value: 2},
                        {name: 'MDQ_75', value: 1},
                        {name: 'MDQ_76', value: 2},
                        {name: 'MDQ_77', value: 4},
                        {name: 'MDQ_83', value: 5},
                        {name: 'SMGQ_13', value: 8},
                        {name: 'SMGQ_17', value: 2},
                        {name: 'SMGQ_18', value: 14},
                        {name: 'SMGQ_19', value: 24},
                        {name: 'SMGQ_20', value: 31},
                        {name: 'SMGQ_21', value: 70},
                        {name: 'SMGQ_22', value: 36},
                        {name: 'SMGQ_23', value: 83},
                        {name: 'SMGQ_24', value: 70},
                        {name: 'SMGQ_26', value: 81},
                        {name: 'SMGQ_27', value: 71},
                        {name: 'SMGQ_28', value: 268},
                        {name: 'SMGQ_29', value: 434},
                        {name: 'SMGQ_30', value: 191},
                        {name: 'SMGQ_31', value: 67},
                        {name: 'SMGQ_32', value: 518},
                        {name: 'SMGQ_33', value: 13},
                        {name: 'SMGQ_34', value: 25},
                        {name: 'SMGQ_35', value: 2},
                        {name: 'SMGQ_36', value: 2},
                        {name: 'SMGQ_42', value: 15},
                        {name: 'SMGQ_57', value: 16},
                        {name: 'SMGQ_63', value: 115},
                        {name: 'SMGQ_64', value: 73},
                        {name: 'SMGQ_65', value: 185},
                        {name: 'SMGQ_66', value: 96},
                        {name: 'SMGQ_67', value: 385},
                        {name: 'SMGQ_68', value: 99},
                        {name: 'SMGQ_69', value: 17},
                        {name: 'SMGQ_70', value: 39},
                        {name: 'SMGQ_71', value: 79},
                        {name: 'SMGQ_72', value: 29},
                        {name: 'SMGQ_73', value: 27},
                        {name: 'SMGQ_74', value: 4},
                        {name: 'SMGQ_75', value: 6},
                        {name: 'SMGQ_78', value: 5},
                        {name: 'SMGQ_79', value: 8},
                        {name: 'SMGQ_81', value: 1},
                        {name: 'SMGQ_82', value: 3},
                        {name: 'SYBKQ_10', value: 20},
                        {name: 'SYBKQ_15', value: 15},
                        {name: 'SYBKQ_16', value: 14},
                        {name: 'SYBKQ_19', value: 228},
                        {name: 'SYBKQ_23', value: 39},
                        {name: 'SYBKQ_24', value: 15},
                        {name: 'SYBKQ_25', value: 8},
                        {name: 'SYBKQ_26', value: 11},
                        {name: 'SYBKQ_27', value: 34},
                        {name: 'SYBKQ_28', value: 166},
                        {name: 'SYBKQ_29', value: 2},
                        {name: 'SYBKQ_3', value: 2},
                        {name: 'SYBKQ_30', value: 20},
                        {name: 'SYBKQ_33', value: 9},
                        {name: 'SYBKQ_34', value: 74},
                        {name: 'SYBKQ_35', value: 203},
                        {name: 'SYBKQ_36', value: 39},
                        {name: 'SYBKQ_37', value: 801},
                        {name: 'SYBKQ_38', value: 773},
                        {name: 'SYBKQ_39', value: 438},
                        {name: 'SYBKQ_40', value: 212},
                        {name: 'SYBKQ_41', value: 507},
                        {name: 'SYBKQ_42', value: 30},
                        {name: 'SYBKQ_43', value: 40},
                        {name: 'SYBKQ_44', value: 8},
                        {name: 'SYBKQ_45', value: 15},
                        {name: 'SYBKQ_46', value: 46},
                        {name: 'SYBKQ_48', value: 2},
                        {name: 'SYBKQ_49', value: 20},
                        {name: 'SYBKQ_5', value: 8},
                        {name: 'SYBKQ_50', value: 2},
                        {name: 'SYBKQ_53', value: 1},
                        {name: 'SYBKQ_54', value: 12},
                        {name: 'SYBKQ_56', value: 1},
                        {name: 'SYBKQ_58', value: 2},
                        {name: 'SYBKQ_6', value: 118},
                        {name: 'SYBKQ_60', value: 58},
                        {name: 'SYBKQ_61', value: 9},
                        {name: 'SYBKQ_62', value: 31},
                        {name: 'SYBKQ_63', value: 25},
                        {name: 'SYBKQ_64', value: 71},
                        {name: 'SYBKQ_66', value: 116},
                        {name: 'SYBKQ_67', value: 17},
                        {name: 'SYBKQ_68', value: 477},
                        {name: 'SYBKQ_69', value: 43},
                        {name: 'SYBKQ_7', value: 50},
                        {name: 'SYBKQ_70', value: 162},
                        {name: 'SYBKQ_71', value: 105},
                        {name: 'SYBKQ_72', value: 205},
                        {name: 'SYBKQ_73', value: 18},
                        {name: 'SYBKQ_74', value: 193},
                        {name: 'SYBKQ_75', value: 285},
                        {name: 'SYBKQ_76', value: 290},
                        {name: 'SYBKQ_77', value: 640},
                        {name: 'SYBKQ_78', value: 951},
                        {name: 'SYBKQ_79', value: 15315},
                        {name: 'SYBKQ_80', value: 286},
                        {name: 'SYBKQ_9', value: 84},
                        {name: 'TSQ_1', value: 82},
                        {name: 'TSQ_22', value: 5},
                        {name: 'TSQ_24', value: 1},
                        {name: 'TSQ_25', value: 29},
                        {name: 'TSQ_28', value: 3},
                        {name: 'TSQ_29', value: 20},
                        {name: 'TSQ_30', value: 1},
                        {name: 'TSQ_31', value: 88},
                        {name: 'TSQ_32', value: 1518},
                        {name: 'TSQ_33', value: 336},
                        {name: 'TSQ_34', value: 1818},
                        {name: 'TSQ_37', value: 24},
                        {name: 'TSQ_38', value: 1},
                        {name: 'TSQ_39', value: 38},
                        {name: 'TSQ_40', value: 1},
                        {name: 'TSQ_41', value: 13},
                        {name: 'TSQ_43', value: 332},
                        {name: 'TSQ_44', value: 58},
                        {name: 'TSQ_45', value: 19229},
                        {name: 'TSQ_46', value: 404},
                        {name: 'TSQ_47', value: 75},
                        {name: 'TSQ_48', value: 191},
                        {name: 'TSQ_49', value: 58},
                        {name: 'TSQ_50', value: 293},
                        {name: 'TSQ_51', value: 892},
                        {name: 'TSQ_52', value: 72},
                        {name: 'TSQ_54', value: 6},
                        {name: 'TSQ_55', value: 340},
                        {name: 'TSQ_56', value: 68},
                        {name: 'TSQ_57', value: 112},
                        {name: 'TSQ_58', value: 13},
                        {name: 'TSQ_59', value: 4},
                        {name: 'TSQ_8', value: 31},
                        {name: 'TSQ_9', value: 2},
                        {name: 'TTHQ_11', value: 10},
                        {name: 'TTHQ_17', value: 2},
                        {name: 'TTHQ_18', value: 5},
                        {name: 'TTHQ_21', value: 1},
                        {name: 'TTHQ_22', value: 2},
                        {name: 'TTHQ_23', value: 1},
                        {name: 'TTHQ_24', value: 2},
                        {name: 'TTHQ_25', value: 8},
                        {name: 'TTHQ_26', value: 12},
                        {name: 'TTHQ_27', value: 14},
                        {name: 'TTHQ_28', value: 20},
                        {name: 'TTHQ_29', value: 43},
                        {name: 'TTHQ_3', value: 1},
                        {name: 'TTHQ_30', value: 8},
                        {name: 'TTHQ_32', value: 15},
                        {name: 'TTHQ_33', value: 55},
                        {name: 'TTHQ_34', value: 12},
                        {name: 'TTHQ_39', value: 12},
                        {name: 'TTHQ_4', value: 1},
                        {name: 'TTHQ_41', value: 6},
                        {name: 'TTHQ_42', value: 4},
                        {name: 'TTHQ_43', value: 12},
                        {name: 'TTHQ_44', value: 43},
                        {name: 'TTHQ_45', value: 10},
                        {name: 'TTHQ_48', value: 53},
                        {name: 'TTHQ_5', value: 10},
                        {name: 'TTHQ_51', value: 3},
                        {name: 'TTHQ_52', value: 1},
                        {name: 'TTHQ_54', value: 21},
                        {name: 'TTHQ_55', value: 21},
                        {name: 'TTHQ_58', value: 7},
                        {name: 'TTHQ_59', value: 3},
                        {name: 'TTHQ_6', value: 3},
                        {name: 'TTHQ_60', value: 25},
                        {name: 'TTHQ_61', value: 22},
                        {name: 'TTHQ_8', value: 2},
                        {name: 'WLMQX1_13', value: 4},
                        {name: 'WLMQX1_14', value: 7},
                        {name: 'WLMQX1_15', value: 6},
                        {name: 'WLMQX1_18', value: 1},
                        {name: 'WLMQX1_21', value: 1},
                        {name: 'WLMQX1_23', value: 1},
                        {name: 'WLMQX1_27', value: 2},
                        {name: 'WLMQX1_28', value: 10},
                        {name: 'WLMQX1_34', value: 3},
                        {name: 'WLMQX1_36', value: 11},
                        {name: 'WLMQX1_7', value: 6},
                        {name: 'WLMQX2_137', value: 3},
                        {name: 'WLMQX2_138', value: 2},
                        {name: 'WLMQX2_141', value: 6},
                        {name: 'WLMQX2_143', value: 4},
                        {name: 'WLMQX2_146', value: 2},
                        {name: 'WLMQX2_147', value: 160},
                        {name: 'WLMQX2_151', value: 32},
                        {name: 'WLMQX2_152', value: 1},
                        {name: 'WLMQX2_153', value: 1},
                        {name: 'WLMQX2_46', value: 1},
                        {name: 'WLMQX2_47', value: 11},
                        {name: 'WLMQX2_50', value: 1},
                        {name: 'WLMQX2_51', value: 4},
                        {name: 'WLMQX2_52', value: 20},
                        {name: 'WLMQX2_53', value: 34},
                        {name: 'WLMQX2_54', value: 10},
                        {name: 'WLMQX2_55', value: 3},
                        {name: 'WLMQX2_57', value: 9},
                        {name: 'WLMQX2_62', value: 15},
                        {name: 'WLMQX2_66', value: 5},
                        {name: 'WLMQX2_71', value: 8},
                        {name: 'WLMQX2_72', value: 1},
                        {name: 'WLMQX2_74', value: 6},
                        {name: 'WLMQX2_75', value: 15},
                        {name: 'WLMQX2_76', value: 129},
                        {name: 'WLMQX2_77', value: 4},
                        {name: 'WLMQX2_80', value: 2},
                        {name: 'XSQ_1', value: 2},
                        {name: 'XSQ_10', value: 11},
                        {name: 'XSQ_11', value: 271},
                        {name: 'XSQ_12', value: 4},
                        {name: 'XSQ_13', value: 263},
                        {name: 'XSQ_14', value: 479},
                        {name: 'XSQ_16', value: 179},
                        {name: 'XSQ_17', value: 4},
                        {name: 'XSQ_18', value: 14},
                        {name: 'XSQ_19', value: 13},
                        {name: 'XSQ_21', value: 20},
                        {name: 'XSQ_23', value: 11},
                        {name: 'XSQ_24', value: 22},
                        {name: 'XSQ_27', value: 14},
                        {name: 'XSQ_28', value: 21},
                        {name: 'XSQ_29', value: 148},
                        {name: 'XSQ_30', value: 19},
                        {name: 'XSQ_31', value: 7},
                        {name: 'XSQ_32', value: 14},
                        {name: 'XSQ_37', value: 1},
                        {name: 'XSQ_38', value: 1},
                        {name: 'XSQ_39', value: 35},
                        {name: 'XSQ_4', value: 2},
                        {name: 'XSQ_40', value: 4},
                        {name: 'XSQ_41', value: 15},
                        {name: 'XSQ_42', value: 3},
                        {name: 'XSQ_43', value: 18},
                        {name: 'XSQ_44', value: 171},
                        {name: 'XSQ_46', value: 3},
                        {name: 'XSQ_47', value: 52},
                        {name: 'XSQ_48', value: 4},
                        {name: 'XSQ_49', value: 36},
                        {name: 'XSQ_50', value: 50},
                        {name: 'XSQ_52', value: 28},
                        {name: 'XSQ_53', value: 116},
                        {name: 'XSQ_55', value: 24},
                        {name: 'XSQ_56', value: 68},
                        {name: 'XSQ_57', value: 7},
                        {name: 'XSQ_58', value: 2},
                        {name: 'XSQ_59', value: 26},
                        {name: 'XSQ_6', value: 10},
                        {name: 'XSQ_60', value: 24},
                        {name: 'XSQ_62', value: 40},
                        {name: 'XSQ_63', value: 47},
                        {name: 'XSQ_64', value: 101},
                        {name: 'XSQ_65', value: 21},
                        {name: 'XSQ_66', value: 23},
                        {name: 'XSQ_67', value: 40},
                        {name: 'XSQ_68', value: 25},
                        {name: 'XSQ_69', value: 34},
                        {name: 'XSQ_7', value: 3},
                        {name: 'XSQ_70', value: 48},
                        {name: 'XSQ_71', value: 45},
                        {name: 'XSQ_72', value: 86},
                        {name: 'XSQ_73', value: 63},
                        {name: 'XSQ_74', value: 61},
                        {name: 'XSQ_75', value: 14},
                        {name: 'XSQ_76', value: 6},
                        {name: 'XSQ_77', value: 43},
                        {name: 'XSQ_78', value: 34},
                        {name: 'XSQ_79', value: 59},
                        {name: 'XSQ_8', value: 4},
                        {name: 'XSQ_80', value: 9},
                        {name: 'XSQ_81', value: 10},
                        {name: 'XSQ_82', value: 1},
                        {name: 'XSQ_9', value: 88}
                    ]
                }
            ]
        });
    });

    // JSON
    //$.getJSON('wlmq_block.json', function (data) {
    //var data = JSON.parse(wlmq_block);

</script>
</body>
</html>